package com.demo.service.impl;

import com.demo.dto.FindNotWorkByTimeDto;
import com.demo.dto.NotDoWorkStudent;
import com.demo.mapper.UserStudentAssignmentMapper;
import com.demo.service.UserStudentAssignmentService;
import com.demo.utils.ResponseResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author: TLB
 * @Date: 2022/11/13 20:44
 */
@Service
public class UserStudentAssignmentServiceImpl implements UserStudentAssignmentService {

    @Autowired
    private UserStudentAssignmentMapper userStudentAssignmentMapper;

    @Override
    public ResponseResult findNotWorkByTime(FindNotWorkByTimeDto dto) {

        List<NotDoWorkStudent> notDoWorkStudents=userStudentAssignmentMapper.findNotWorkByTime(dto);
        return ResponseResult.success(notDoWorkStudents);
    }
}
